package edu.dew_summer2011;
import edu.dew_summer2011.dominio.Cine;
import edu.dew_summer2011.movieDetails.CineRepository;
import java.util.HashMap;
import java.util.Map;


public class CineManager implements CineRepository {
	Map<String, Cine> repositoryCine =new HashMap<String, Cine>();
		
	public CineManager() {
//		this.repositoryCine = new HashMap <String, Cine>();
//		String[] salas={"A","B","C"};
//		Cine cine1 = new Cine("MAR","marina","av la marina 201","Callao",salas );
//		
//		this.repositoryCine.put("MAR", cine1);
//		
//		Cine cine2 = new Cine("ANG","angamos","av aviacion 201","Suquillo",salas );
//		
//		this.repositoryCine.put("ANG", cine2);
	}

	@Override
	public Cine findByName(String cinenombre) {
		Cine cine = repositoryCine.get(cinenombre);
		if (cine == null) {
			//throw new EmptyResultDataAccessException(1);
		}
		return cine;
	}

	
	
	@Override
	public void updateCine(Cine cine) {
		// TODO Auto-generated method stub
		
	}
	
	

}
